import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router/router";
import * as echarts from "echarts";

import "@/assets/css/global.less";
import "bootstrap-icons/font/bootstrap-icons.css";
// import "echarts/theme/cool.js";
// import "echarts/theme/chalk";
import "echarts/theme/dark-blue";
//websocket链接
import SocketService from "@/utils/socked_service";

SocketService.Instance.connect();

const app = createApp(App);
const pinia = createPinia();
const add = (num: number) => {
  num++;
  return ++num;
};

app.config.globalProperties.$socket = SocketService.Instance;
app.use(router);
app.use(pinia);
app.mount("#app");
